package com.maker997.ajax.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 省份
 *
 * @author maker
 * @date 2017/11/13
 */
@Data
public class Province {

    private long pid;

    private String name;

    public Province(long pid, String name)
    {
        this.pid = pid;
        this.name = name;
    }

    public static List<Province> listAllProvice()
    {
        List<Province> list = new ArrayList<Province>();
        Province p0 = new Province(1L,"山东省");
        Province p1 = new Province(2L,"黑龙江省");
        Province p2 = new Province(3L,"河北省");

        list.add(p0);
        list.add(p1);
        list.add(p2);
        return list;
    }

}
